<template>
  <div>
    <mt-swipe :auto="4000">
      <!-- 在组件中v-for循环的话，一定要绑定key -->
      <mt-swipe-item v-for="item in list.slice(5, 7)" :key="item.title">
        <img :src="item.imgurl" />
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
    props:["list"]
};
</script>
<style scoped>
.mint-swipe {
  height: 200px;
}
.mint-swipe-item:nth-child(1) {
  background-color: blue;
}
.mint-swipe-item:nth-child(2) {
  background-color: yellow;
}
.mint-swipe-item:nth-child(3) {
  background-color: lightcoral;
}
.mint-swipe-item img {
  width: 100%;
  height: 100%;
}
</style>